FROM openjdk:8u312-jdk

ARG JAR_FILE=target/demo-es-0.0.1-SNAPSHOT.jar
RUN mkdir /app
WORKDIR /app
COPY ${JAR_FILE} app.jar
ENV JAVA_OPTS=""
EXPOSE 8081

ENTRYPOINT java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /app/app.jar
